using System;
using System.Collections.Generic;

namespace CMS.Core.Domain
{
    /// <summary>
    /// CongDan object for NHibernate mapped table CongDan.
    /// </summary>
    [Serializable]
    public class NguoiGuiDon : DomainObject<System.Int32>
    {
        private System.String _HoTen;
        private System.String _DiaChi;
        private IList<DonThu> _DonThus = new List<DonThu>();

        public NguoiGuiDon()
        {
        }

        public NguoiGuiDon(System.Int32 id)
        {
            base.ID = id;
        }

        public virtual System.String HoTen
        {
            get { return _HoTen; }
            set { _HoTen = value; }
        }
        public virtual System.String DiaChi
        {
            get { return _DiaChi; }
            set { _DiaChi = value; }
        }

        public virtual IList<DonThu> DonThus
        {
            get { return _DonThus; }
            set { _DonThus = value; }
        }
        public override int GetHashCode()
        {
            return ID.GetHashCode();
        }
    }
}
